<?php
/**
 * common model file Created by PhpStorm.
 * User: wumengmeng
 * Date: 2020/05/11
 * Time: 16:49
 */

namespace HiCommon\Model;

class HandbookUpkeepType extends Base
{

    protected $table = 'handbook_upkeep_type';

    protected $guarded = [];

    //一对一
    public function get_upkeep_type()
    {
        return $this->hasOne(UpkeepType::class, 'id', 'upkeep_type_id')
            ->select(['id', 'title', 'remark']);
    }
}